<?php
/**
 * Introduction: 商品附表  goods_extend
 * @author: 杨陈鹏
 * @date: 2016/4/10 16:41
 * @email: yangchenpeng@cdlinglu.com
 */

namespace Common\Model;


use Think\Model;

class GoodsExtendModel extends Model
{

    //定义数据库连接信息
    protected $connection;
    //定义模型字段
    protected $fileds = [
        'id',
        'goods_id',
        'goods_attr_val_ids',
        'is_default',
        'thumb',
        'slide',
        'goods_price',
        'goods_promotion_price',
        'goods_market_price',
        'goods_storage_alarm',
        'goods_storage',
        'goods_cost_price',
    ];
    //定义表名
    protected $tableName = 'goods_extend';

    /**
     * 初始化
     */
    public function _initialize()
    {
        $this->connection = C('Databaese');
    }

}